#ifndef LOGGER_H
#define LOGGER_H
#include <QFile>
#include <QTextStream>
#include <QMutex>
#include <QDateTime>
#include <QDebug>

class Logger
{
public:
    Logger();
    static void initialize(const QString &filePath);
    static void finalize();
    static void logMessage(QString level, const QString &message);
    static void clearLogFile();
private:
    static QFile *logFile;
    static QTextStream *logStream;
    static QMutex *mutex;
    static QString filePath;
};

#endif // LOGGER_H
